@model string
@{
    string[] Files = Directory.GetFiles(Server.MapPath("~/Views/Shared/"), "_Layout*.cshtml");
    List<string> FilesList = new List<string>();
    foreach(string item in Files) {
        string t = "~/Views/Shared/" + System.IO.Path.GetFileName(item);
        FilesList.Add(t);
    }
    SelectList Layouts = new SelectList(FilesList,Model);
}
@Html.DropDownListFor(model => model, Layouts)
